package com.xnyzc.lhy.common.entity;

public enum ParameterEnum {

	ZERO("0",0),
	ONE("1",1),
	TWO("2",2),
	THREE("3",3),
	FOUR("4",4),
	FIVE("5",5),
	SIX("6",6),
	SEVEN("7",7),
	NINE("9",9),
	TEN("10",10),
	ELEVEN("11",11),
	TWELVE("12",12),
	THIRTEEN("13",13),
	FOURTEEN("14",14),
	FIFTEEN("15",15),
	SIXTEEN("16",16),
	SEVENTEEN("17",17);

	private String typeName;
	private Integer type;

	ParameterEnum(String typeName,Integer type) {
		this.typeName = typeName;
		this.type  = type;
	}

	public static ParameterEnum fromTypeName(String typeName) {
		for (ParameterEnum type : ParameterEnum.values()) {
			if (type.getTypeName().equals(typeName)) {
				return type;
			}
		}
		return null;
	}

	public String getTypeName() {
		return this.typeName;
	}

	public int getType(){
		return this.type;
	}

}
